package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TGoodsUserMapper;
import com.ruoyi.system.domain.TGoodsUser;
import com.ruoyi.system.service.ITGoodsUserService;

/**
 * t_goods_user 商品创作者关系Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-09
 */
@Service
public class TGoodsUserServiceImpl implements ITGoodsUserService 
{
    @Autowired
    private TGoodsUserMapper tGoodsUserMapper;

    /**
     * 查询t_goods_user 商品创作者关系
     * 
     * @param pkId t_goods_user 商品创作者关系主键
     * @return t_goods_user 商品创作者关系
     */
    @Override
    public TGoodsUser selectTGoodsUserByPkId(Long pkId)
    {
        return tGoodsUserMapper.selectTGoodsUserByPkId(pkId);
    }

    /**
     * 查询t_goods_user 商品创作者关系列表
     * 
     * @param tGoodsUser t_goods_user 商品创作者关系
     * @return t_goods_user 商品创作者关系
     */
    @Override
    public List<TGoodsUser> selectTGoodsUserList(TGoodsUser tGoodsUser)
    {
        return tGoodsUserMapper.selectTGoodsUserList(tGoodsUser);
    }

    /**
     * 新增t_goods_user 商品创作者关系
     * 
     * @param tGoodsUser t_goods_user 商品创作者关系
     * @return 结果
     */
    @Override
    public int insertTGoodsUser(TGoodsUser tGoodsUser)
    {
        return tGoodsUserMapper.insertTGoodsUser(tGoodsUser);
    }

    /**
     * 修改t_goods_user 商品创作者关系
     * 
     * @param tGoodsUser t_goods_user 商品创作者关系
     * @return 结果
     */
    @Override
    public int updateTGoodsUser(TGoodsUser tGoodsUser)
    {
        return tGoodsUserMapper.updateTGoodsUser(tGoodsUser);
    }

    /**
     * 批量删除t_goods_user 商品创作者关系
     * 
     * @param pkIds 需要删除的t_goods_user 商品创作者关系主键
     * @return 结果
     */
    @Override
    public int deleteTGoodsUserByPkIds(Long[] pkIds)
    {
        return tGoodsUserMapper.deleteTGoodsUserByPkIds(pkIds);
    }

    /**
     * 删除t_goods_user 商品创作者关系信息
     * 
     * @param pkId t_goods_user 商品创作者关系主键
     * @return 结果
     */
    @Override
    public int deleteTGoodsUserByPkId(Long pkId)
    {
        return tGoodsUserMapper.deleteTGoodsUserByPkId(pkId);
    }
}
